This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 28, 2012, 4:08 PM
10 Posts

FT Search in Repeat control gives error on some words

  • Category: Debugging
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: Search Repeat Error
  • Replies: 6
Most tutorials and instructions for using a FT Search use a View control, but for the sake of better formatting I needed to use a Repeat control.  I followed all the instructions and it seemed to work perfectly - until I entered the word "Man" in the Edit Box and clicked search.  Likewise, the words "A" and "needs" cause the error (and I assume there are others in the English language I haven't tested) but the vast majority of words work. 
 
I have a dominoView with var="messages", viewName="{javascript:sessionScope.viewName;}", search="#{javascript:sessionScope.searchValue;}" (which is the value set by the button click event on an Edit box).  The repeat control has var="rowValue" and value="#{messages}".  The error produced is "rowValue not found".  This is not a problem with it not finding the word - I can search on a word that is for sure not in the db and it returns an empty table.  Why should the search be able to find 99% of words, but crash on a few?
Aug 31, 2012, 1:19 PM
7 Posts
Re: FT Search in Repeat control gives error on some words
Not a solution, just a shot in the dark: These same searches work okay if you do them in the Notes client, yes?
 
Sep 6, 2012, 3:21 PM
10 Posts
Re: FT Search in Repeat control gives error on some words
No, the error is occuring in Notes client.  I actually haven't tried it from Internet yet as the application will mainly be used in Notes but is being developed in Xpages to allow for future web access.
 
I duplicated the page using a View control and it works perfectly.  But, it fails (only on a small number of words) when a Repeat control is used. 
Sep 6, 2012, 8:14 PM
7 Posts
Re: FT Search in Repeat control gives error on some words
OK. My question was directed toward using the standard Notes search, as opposed to a search done through XPages, but given everything you've said, it does seem unlikely that the search itself is to blame. Is the app running on a server? Just wondering if the console or log file would yield anything interesting.
Sep 6, 2012, 8:53 PM
10 Posts
Re: FT Search in Repeat control gives error on some words
At this point, I'm just running on my developer computer, not on the server.
Sep 10, 2012, 7:33 PM
7 Posts
Re: FT Search in Repeat control gives error on some words
Still no 'aha'. Random questions:
  • Is the FT search index  updated?
  • Does sessionScope.searchValue always represent a valid Notes search query?
  • Does the edit box button do a full refresh or partial? (Not sure why that would matter, just wondering.)
  • Does searchValue have to be in sessionScope? Could it be in viewScope instead? (Again, not sure that's significant, just thinking about trying to eliminate possibility of leftover values.)
 
Sep 13, 2012, 10:02 PM
10 Posts
Re: FT Search in Repeat control gives error on some words
  • Is the FT search index updated?  - I'm a newbie and not sure what you mean.  I updated the index, but no change in results.  I can enter value after value and have it work, but it always crashes on the specific words I've listed.  It's like these are reserved words or something, but obviously they are not.
  • Does sessionScope.searchValue always represent a valid Notes search query?  - it should.  It's always a string from the edit box, so if it works on one word, it should on another.
  • Does the edit box button do a full refresh or partial? (Not sure why that would matter, just wondering.)  - It's a full refresh since it is basically replacing the whole page.
  • Does searchValue have to be in sessionScope? Could it be in viewScope instead? (Again, not sure that's significant, just thinking about trying to eliminate possibility of leftover values.) - I tried it.  viewScope doesn't work (it loses its value).

  • This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

    HCL Software Customer Support Portal for U.S. Federal Government clients
    HCL Software Customer Support Portal